package com.example.park_management.service.impl;

import com.example.park_management.entity.Dept;
import com.example.park_management.mapper.DeptMapper;
import com.example.park_management.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service

public class DeptServiceimpl implements DeptService {
    @Autowired
    private DeptMapper deptMapper;

    @Override
    public List<Dept> getDeptById() {
        return deptMapper.getDeptById();
    }

    @Override
    public boolean deleteDept(Integer id) {
        return  deptMapper.deleteDept(id);
    }


}